"""Definition of the jiaxiaoimage content type
"""

from zope.interface import implements

from Products.Archetypes import atapi
#from Products.ATContentTypes.content import base
from Products.ATContentTypes.content.image import ATImage,ATImageSchema
from Products.ATContentTypes.content import schemata

# -*- Message Factory Imported Here -*-

from my315ok.xtjxwcontents.interfaces import Ijiaxiaoimage
from my315ok.xtjxwcontents.config import PROJECTNAME

jiaxiaoimageSchema = ATImageSchema.copy() + atapi.Schema((

    # -*- Your Archetypes field definitions here ... -*-

))

# Set storage on fields copied from ATContentTypeSchema, making sure
# they work well with the python bridge properties.

jiaxiaoimageSchema['title'].storage = atapi.AnnotationStorage()
jiaxiaoimageSchema['description'].storage = atapi.AnnotationStorage()

jiaxiaoimageSchema['description'].widget.visible = 0

schemata.finalizeATCTSchema(jiaxiaoimageSchema, moveDiscussion=False)


class jiaxiaoimage(ATImage):
    """Description of the Example Type"""
    implements(Ijiaxiaoimage)

    meta_type = "jiaxiaoimage"
    schema = jiaxiaoimageSchema

    title = atapi.ATFieldProperty('title')
    description = atapi.ATFieldProperty('description')

    # -*- Your ATSchema to Python Property Bridges Here ... -*-

atapi.registerType(jiaxiaoimage, PROJECTNAME)
